package com.jlect.swebing.ui.client;

import com.jlect.swebing.renderers.client.DefaultRenderers;
import com.jlect.swebing.renderers.client.RenderersConfig;
import com.jlect.swebing.renderers.client.TextFieldRenderer;
import com.jlect.swebing.renderers.client.TextRenderer;

/**
 * Textfield component implementation
 *
 * @author Sergey Kozmin
 * @since 19.11.2007 10:40:04
 */
public class GTextField extends TextComponentsBase {
    public GTextField(String text) {
        super(text);
    }

    public GTextField() {
        this("");
    }

    protected TextRenderer createTextRenderer() {
        return (TextFieldRenderer) RenderersConfig.getRenderersFactory().createComponentRenderer(DefaultRenderers.TEXTFIELD.getName());
    }
}